{extend name="public:layout" /}
{block name="style"}
<link rel="stylesheet" href="__STATIC__/public/css/animate.min.css">
<link rel="stylesheet" href="__HOME_CSS__/index.css">
{/block}
{block name="main-container"}
<div class="banner">
    <div class="full-width-slider" id="bannerSlider">
        <ul class="clearfix">
            {notempty name="slider"}
                {volist name="slider" id="sl"}
                <li class="item">
                    <a href="http://{$sl.url}">
                        <img class="img-responsive"  src="{$sl.cover|get_file_path}" alt="{$sl.title}">
                    </a>
                </li>
                {/volist}
            {/notempty}
        </ul>
    </div>

    <div class="float-box">
        <div class="text">您炒股，我出钱</div>
        <div class="text-large">目前免息操盘{$freeconfig['free_set'][1]}天</div>
        <div class="text">资金双重保障，100%实盘交易</div>
        {if condition="$mid eq 0"}
        <div class="operate">
            <a href="{:url('/register')}" class="btn btn-primary btn-block">注册领红包</a>
        </div>
        <div class="extra-text">已有账号？<a href="{:url('/login')}">立即登录</a></div>
        {else /}
        <div class="operate">
            <a href="{:url('/member')}" class="btn btn-primary btn-block">我的账户</a>
        </div>
        <div class="extra-text"><a href="{:url('/signout')}">注销登录</a></div>
        {/if}
    </div>
</div>
<div class="data-show">
     <!--公告-->
    <div class="notice wrapper clearfix"> 
        <i></i> <span class="notice-tit">网站公告 |</span>
        <div class="notice-left">
            <div class="bd">
                <div class="tempWrap" >
                    <ul class="infoList" >
                        {volist name="ar_Listno" id="vo"}
                            <li><a href="{:url('cms/document/detail', ['id' => $vo['id'], 'model' => $model])}" target="_blank">{$vo.title}</a><span>{$vo.create_time|date="Y-m-d",###}</span></li>
                         {/volist}    
                    </ul>
                </div>
            </div>
        </div>
        <div class="notice-more fr"><a href="/cms/column/index/id/2.html" target="_blank">更多公告 ></a></div>
    </div>
    <!--公告 end-->
</div>
<div class="newbee">
    <div class="wrapper clearfix">
        <div class="item">
            <div class="figure">
                <img src="__HOME_IMG__/icon-1.png" alt="">
            </div>
            <div class="item-body">
                <div class="title">资金保障</div>
                <div class="text">资金第三方托管，专款专用</div>
            </div>
        </div>
        <div class="item">
            <div class="figure">
                <img src="__HOME_IMG__/icon-2.png" alt="">
            </div>
            <div class="item-body">
                <div class="title">真实交易</div>
                <div class="text">100%实盘，level2可查委托</div>
            </div>
        </div>
        <div class="item">
            <div class="figure">
                <img src="__HOME_IMG__/icon-3.png" alt="">
            </div>
            <div class="item-body">
                <div class="title">快捷提现</div>
                <div class="text">闪电提现，三十分钟到账</div>
            </div>
        </div>
        <div class="item">
            <div class="figure">
                <img src="__HOME_IMG__/icon-4.png" alt="">
            </div>
            <div class="item-body">
                <div class="title">专业服务</div>
                <div class="text">客户体验至上为宗旨</div>
            </div>
        </div>
    </div>
</div>
<div class="operate-flow clearfix wrapper">
    <div class="item" onclick="window.location.href='__ROOT__/login.html'">
        <div class="icon">
            <img src="__HOME_IMG__/icon-man.png" alt="">
        </div>
        <div class="title">1.注册登录</div>
    </div>
    <div class="gutter"></div>
    <div class="item" onclick="window.location.href='__ROOT__/member/profile/realname.html'">
        <div class="icon">
            <img src="__HOME_IMG__/icon-user-check.png" alt="">
        </div>
        <div class="title">2.实名认证</div>
    </div>
    <div class="gutter"></div>
    <div class="item" onclick="window.location.href='__ROOT__/money/recharge/index.html'">
        <div class="icon">
            <img src="__HOME_IMG__/icon-card.png" alt="">
        </div>
        <div class="title">3.账号充值</div>
    </div>
    <div class="gutter"></div>
    <div class="item" onclick="window.location.href='__ROOT__/stock/month'">
        <div class="icon">
            <img src="__HOME_IMG__/icon-note.png" alt="">
        </div>
        <div class="title">4.申请配资</div>
    </div>
    <div class="gutter"></div>
    <div class="item">
        <div class="icon">
            <img src="__HOME_IMG__/icon-note2.png" alt="">
        </div>
        <div class="title">5.生成配资</div>
    </div>
    <div class="gutter"></div>
    <div class="item" onclick="window.location.href='__ROOT__/market/index/index/index?c=600000'">
        <div class="icon">
            <img src="__HOME_IMG__/icon-stock.png" alt="">
        </div>
        <div class="title">6.交易股票</div>
    </div>
    <div class="gutter"></div>
    <div class="item" onclick="window.location.href='__ROOT__/money/withdraw.html'">
        <div class="icon">
            <img src="__HOME_IMG__/icon-wallet.png" alt="">
        </div>
        <div class="title">7.结算提现</div>
    </div>
</div>
<div class="section-product section-peizi clearfix">
    <div class="section-left"> <div class="section-left-bg"></div>
        <h3 class="right-tit">股票配资</h3>
        <p class="right-info">
            您炒股 我出钱  <br>
            资金放大2-10倍 <br>
            盈利全归您 <br>
            低门槛 提现快
        </p>
        <!--<img src="__HOME_IMG__/img-stock.jpg" width="300" height="360" alt="">-->
    </div>
    <div class="section-main">
        <div class="peizi-item wow flipInY animated" data-wow-delay=".2s" style="visibility: visible; animation-delay: 0.2s; animation-name: flipInY;">
            <div class="title">按天配资</div>
            <div class="desc">
                自动延期，按日计息
            </div>
            <div class="feature">
                <div class="con">
                        <span class="text-xlarge text-red">
                            {$min_day_rate}%
                        </span>起
                </div>
                <div class="name">费率</div>
            </div>
            <div class="meta">
                <div class="clearfix"><div class="name">最高可操盘：</div><div class="val">{$globalconfig['money_range'][1]}元</div></div>
                <div class="clearfix"><div class="name">起配金额：</div><div class="val">{$globalconfig['money_range'][0]}元</div></div>
            </div>
            <div class="btns-botton">
                <a class="grab-btn" href="/stock/day.html">
                    <em></em><i>立即申请</i>
                </a>
            </div>
        </div>
        <div class="peizi-item wow flipInY animated" data-wow-delay=".2s" style="visibility: visible; animation-delay: 0.2s; animation-name: flipInY;">
            <div class="title">按月配资</div>
            <div class="desc">
                股市投资利器，月配更划算
            </div>
            <div class="feature">
                <div class="con">
                        <span class="text-xlarge text-red">
                            {$max_month_rate}
                        </span>
                    倍
                </div>
                <div class="name">最大杠杆比例</div>
            </div>
            <div class="meta">
                <div class="clearfix"><div class="name">最高可操盘：</div><div class="val">{$globalconfig['money_range'][1]}元</div></div>
                <div class="clearfix"><div class="name">起配金额：</div><div class="val">{$globalconfig['money_range'][0]}元</div></div>
            </div>
            <div class="btns-botton">
                <a class="grab-btn" href="/stock/month.html">
                    <em></em><i>立即申请</i>
                </a>
            </div>
        </div>
        <div class="peizi-item wow flipInY animated" data-wow-delay=".2s" style="visibility: visible; animation-delay: 0.2s; animation-name: flipInY;">
            <div class="title">免息配资</div>
            <div class="desc">
                不收取管理费，盈利的{$freeconfig['free_set'][2]}%归您
            </div>
            <div class="feature">
                <div class="con">
                        <span class="text-xlarge text-red">
                            免
                        </span>
                </div>
                <div class="name">所有费用</div>
            </div>

            <div class="meta">
                <div class="clearfix"><div class="name">配资期限：</div><div class="val">{$freeconfig['free_set'][1]}天</div></div>
                <div class="clearfix"><div class="name">可持仓比例：</div><div class="val">无限制</div></div>
            </div>
            <div class="btns-botton">
                <a class="grab-btn" href="/stock/free.html">
                    <em></em><i>立即申请</i>
                </a>
            </div>
        </div>
    </div>

</div>
<div class="wrapper tonglan">{:get_advert(3)}</div>
<div id="banner" class="clearfix">
    <div id="img_box">

    </div>
    <ul id="circle">

    </ul>
</div>
<link rel="stylesheet" href="/js/xq.css">
<!-- 行情中心 -->
<div id="quotes">
    <div class="quotes_left">
        <div class="det-bg">
            <h3>行情中心</h3>
            <p>
                大盘动向一览无余
                <br> 指数实时关心
            </p>
        </div>
        <div class="quotes_menu">
            <div class="current spare clearfix" data-item="sh"><a>上证指数</a></div>
            <div class=" spare clearfix" data-item="sz"><a>深证指数</a></div>
        </div>
    </div>
    <div class="quotes_right">
        <div class="hq_nav">
            <div class="hq_txt">
                <a class="act" data-item="0" href="javascript:;">分时线</a>
                <a class="cur" data-item="1" href="javascript:;">日K线</a>
                <a class="cur" data-item="2" href="javascript:;">周K线</a>
                <a class="cur" data-item="3" href="javascript:;">月K线</a>
            </div>
            <div class="hq_img">
                <img src="https://image.sinajs.cn/newchart/min/n/sh000001.gif" width="480" height="300" id="hqimg">
            </div>
        </div>
       
        <div class="hq_sv clearfix">
            <div class="hq_a1">
                <ul class="clearfix">
                    <li style="float: left; line-height: 40px;"><h3>涨跌龙虎榜</h3></li>
                    <li style="float: right;"><a id="stockrefresh"  class="gx"></a></li>
                </ul>
            </div>
            <div class="hq_aq1_xq clearfix">
                <div class="zhang" style="color:#ff3646; ">涨幅榜</div><div class="die" style="color:#19901e; ">跌幅榜</div>
            </div>
            <div class="hq_gp clearfix">
                <ul class="stockup" id="stockup">
                     
                </ul>
                <ul class="stockdown" id="stockdown">
                    
                </ul>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript" src="/js/index.js"></script>
<script src="/js/socket.io.js" type="text/javascript"></script>	
<script src="/js/config.js" type="text/javascript"></script>


<script type="text/javascript">
   

    var usertoken = "038d6713b42815f568d45f8b6d0c08a1";
    var useracc = "system";
    var socket = io.connect(configsocket);
    socket.emit("handshake", { "user": useracc, "token": usertoken });
    socket.on("handshake", function (o) {
        if (o.stat == 1) {
            setTimeout(function () { socket.emit("stocktop", { "top": 10 }); }, 500);
        }
    });
    socket.on("stocktop", function (o) {
        console.log(JSON.stringify(o));
        $("#stockup").empty();
        $("#stockdown").empty();
        for (var i = 0; i < o.u.length; i++) {
            $("#stockup").append("<li class='clearfix'><div class='mz'><a>[" + o.u[i].c + "]" + o.u[i].n + "</a></div><div class='bfb'><a style='color: #ff3646;'>" + (o.u[i].t / 1000).toFixed(2) + "/+" + (o.u[i].r / 1000).toFixed(2) +"%</a></div></li>");
        }
        for (var i = 0; i < o.d.length; i++) {
           
            $("#stockdown").append("<li class='clearfix'><div class='mz'><a>[" + o.d[i].c + "]" + o.d[i].n + "</a></div><div class='bfb'><a style='color: #19901e;'>" + (o.d[i].t / 1000).toFixed(2) + "/" + (o.d[i].r / 1000).toFixed(2) + "%</a></div></li>");
        }
    });
    $("#stockrefresh").click(function () { socket.emit("stocktop", { "top": 10 });})
    setTimeout(function () {
        console.log(1)
            loadMore();
        }, 500);
    function loadMore() {
            mui.ajax({
                type: "GET",
                url: configurl + '/news',
                processData: false,
                data: "newstype=finance&PageNum=1",
                datatype: "jsonp",
                beforeSend: function () {
                },
                success: function (result) {
        console.log(result)
                        var contentopenad = document.getElementById('openad');
                        var tplad = document.getElementById('newsad-template').text;
                        var tempFnad = doT.template(tplad);
                        contentopenad.innerHTML = tempFnad(result);
                }
            });
        }
        mui('#openad').on('click', '.layui-layer-close', function () {
            document.body.querySelector('.layui-layer').style["display"] = "none";
            document.body.querySelector('.layui-layer-shade').style["display"] = "none";
        });
</script>


<!--div class="wrapper edge-cont">
    <div class="pb6 clearfix">
        <div class="down_load">
            <div class="load_top">
                <span>推广赚佣金</span>
                <p>当所邀请客户申请操盘审核通过后<br>您可获取操盘管理费<span class="text-red">{:config('member_back_rate')}%</span>的佣金</p>
                <i></i>
                <div class="btns-botton">
                    <a class="grab-btn" href="/member/invite">
                        <em></em><i>立即申请</i>
                    </a>
                </div>
            </div>
        </div>
        <div class="pb6-r">
            <div class="gonggaoBox">

                <div id="hd_two" class="hd dd">
                    <embed src='http://player.youku.com/player.php/sid/XMzgxMjE5NjI3Mg==/v.swf' allowFullScreen='true' quality='high' width='390' height='300' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash'></embed>
                </div>
                <div id="bd_two" class="bd dd">
                    <p><span>股市动态</span> <a href="/cms/column/index/id/11.html" target="_blank" class="gg">更多>></a></p>

                    <span>
                            {volist name="ar_Listdongtai" id="vo"}
                            <li> <span class="date">{$vo.create_time|date="Y-m-d",###}</span> <a id="bd_colors" href="{:url('cms/document/detail', ['id' => $vo['id'], 'model' => $model])}" target="_blank">· &nbsp;&nbsp;{$vo.title}</a> </li>
                            {/volist}
                        </span>

                </div>


            </div>
           
        </div>
    </div>

</div-->
<!--div class="wrapper edge-cont">
    <div class="pb7 clearfix">
        <div class="pb7-l">
            <div class="gonggaoBox">
                <div id="bd_two" class="bd dd">
                    <div class="lanmupc"><img src="__HOME_IMG__/lanmupc.jpg" alt=""></div>
                    <p><span>股市资讯投资</span> <a href="/cms/column/index/id/12.html" target="_blank" class="gg">更多>></a></p>

                    <span>
                            {volist name="ar_Listzixun" id="vo"}
                            <li> <a id="bd_colors" href="{:url('cms/document/detail', ['id' => $vo['id'], 'model' => $model])}" target="_blank">&nbsp;{$vo.title|substr=###,0,57}</a> </li>
                            {/volist}
                        </span>

                </div>


            </div>
        </div>
        <div class="pb7-m">
            <div class="gonggaoBox">
                <p><span>操盘达人</span></p>
                <div id="index-daren" class="bd dd">
                    <ul>
                            {volist name="$daren" id="vo"}
                            <li> 
                                <table>
                                  <tbody>
                                    <tr><td>{$vo.mobile|format_str=###}</td></tr>
                                    <tr><td>{$vo.type}  -  <span class="text-red"><i class="ft16">{$vo.stock_money}</i>&nbsp;元</span>  实盘资金</td></tr>
                                    <tr><td>{$vo.borrow_duration}&nbsp;天斩获  &nbsp; <span class="text-red"><i class="ft16">{$vo.invest_rate|abs=###}</i>%</span> ，盈利  <span class="text-red"><i class="ft16">{$vo.shouyi|abs=###}</i>&nbsp;元</span> </td></tr>
                                  </tbody>
                            </table>
                                 </li>
                            {/volist}
                        </ul>

                </div>


            </div>
        </div>
        <div class="pb7-r">
            <div class="gonggaoBox">
                <div id="bd_two" class="bd dd">
                     <div class="lanmupc"><img src="__HOME_IMG__/lanmupc.jpg" alt=""></div>
                   <p><span>配资常识</span> <a href="/cms/column/index/id/13.html" target="_blank" class="gg">更多>></a></p>

                    <span>
                            {volist name="ar_Listchangshi" id="vo"}
                            <li> <a id="bd_colors" href="{:url('cms/document/detail', ['id' => $vo['id'], 'model' => $model])}" target="_blank">&nbsp;{$vo.title|substr=###,0,57}</a> </li>
                            {/volist}
                        </span>

                </div>


            </div>
            
        </div>
    </div>

</div-->


<div class="partner wrapper">
    <div class="partner-hd">
        <div class="text">合作伙伴</div>
    </div>
    <div class="partner-bd">
        <ul class="clearfix">
		
		<li class="item">
                <a href="https://www.huajinsc.cn/" target="_blank">
                    <img class="img-responsive" src="/js/ab78a987ff1513cdcbf3ca06e261a3c3.jpg" alt="华金证券" style="max-height: 75px; max-width: 192px;min-height: 75px;min-width: 192px;">
                </a>
            </li>
                        <li class="item">
                <a href="https://www.95579.com/" target="_blank">
                    <img class="img-responsive" src="/js/4fd215d718d8b773a678045374ff864e.jpg" alt="长江证券" style="max-height: 75px; max-width: 192px;min-height: 75px;min-width: 192px;">
                </a>
            </li>
                        <li class="item">
                <a href="https://www.itiger.com/?account_display=global" target="_blank">
                    <img class="img-responsive" src="/js/780acffdf5e6d257b54aa0f2491c053f.jpg" alt="老虎证券" style="max-height: 75px; max-width: 192px;min-height: 75px;min-width: 192px;">
                </a>
            </li>
                        <li class="item">
                <a href="https://stock.pingan.com/" target="_blank">
                    <img class="img-responsive" src="/js/f3c95829ab981afb448292c6d0d45bbf.gif" alt="平安证券" style="max-height: 75px; max-width: 192px;min-height: 75px;min-width: 192px;">
                </a>
            </li>
                        <li class="item">
                <a href="http://www.chinalions.com/main/index.shtml" target="_blank">
                    <img class="img-responsive" src="/js/2e88d707715c822775327d18c32eda42.jpg" alt="华林证券" style="max-height: 75px; max-width: 192px;min-height: 75px;min-width: 192px;">
                </a>
            </li>
                        <li class="item">
                <a href="https://www.csc108.com/" target="_blank">
                    <img class="img-responsive" src="/js/c1f127090074a29db4626ee23d6bd60b.jpeg" alt="中信建投" style="max-height: 75px; max-width: 192px;min-height: 75px;min-width: 192px;">
                </a>
            </li>
                        <li class="item">
                <a href="http://www.ebscn.com/main/index/index.html" target="_blank">
                    <img class="img-responsive" src="/js/c751db2cf3dccf4e9ffe433c262193ed.jpg" alt="光大证券" style="max-height: 75px; max-width: 192px;min-height: 75px;min-width: 192px;">
                </a>
            </li>
                        <li class="item">
                <a href="https://www.grzq.com/osoa/views/index.html" target="_blank">
                    <img class="img-responsive" src="/js/14f7af45156e699342728466a1442487.jpg" alt="国融证券" style="max-height: 75px; max-width: 192px;min-height: 75px;min-width: 192px;">
                </a>
            </li>
                        <li class="item">
                <a href="http://www.gyzq.com.cn/main/index.html" target="_blank">
                    <img class="img-responsive" src="/js/eed60209763032b20c5ec18f116da553.jpg" alt="国元证券" style="max-height: 75px; max-width: 192px;min-height: 75px;min-width: 192px;">
                </a>
            </li>
                        <li class="item">
                <a href="https://www.cfzq.com/" target="_blank">
                    <img class="img-responsive" src="/js/05ab461b22004e24c7b01c5c4516cbcd.jpg" alt="财富证券" style="max-height: 75px; max-width: 192px;min-height: 75px;min-width: 192px;">
                </a>
            </li>
            {notempty name="link"}
            {volist name="link" id="li"}
            <li class="item">
                <a href="{$li.url}" target="_blank">
                    <img class="img-responsive" src="{$li.logo|get_file_path}" alt="{$li.title}" style="max-height: 75px; max-width: 192px;min-height: 75px;min-width: 192px;">
                </a>
            </li>
            {/volist}
            {else/}
            <!--li class="item">
                <a href="">
                    <img src="__HOME_IMG__/partner-logo.png" alt="">
                </a>
            </li-->
            {/notempty}

        </ul>
    </div>
</div>
<!--累计配资人数{$borrow_count} 累计实盘资金 {$operate_account}-->
{/block}

{block name="script"}
<script>
    var searchStockUrl = "{:url('market/index/search_keyword')}"; // 搜索股票接口
</script>
<script src="__STATIC__/common/js/jquery.SuperSlide.2.1.1.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.0/underscore-min.js"></script>
<script src="__STATIC__/libs/full-width-slider/full-width-slider.js"></script>
<script src="__STATIC__/home/js/index.js"></script>

  <script src="https://cdn.bootcss.com/layer/2.3/layer.js"></script>
<script>
   // $.ajax({ url: "/index/index/startapi.html",  success: function(){}});
        /*网站公告*/
    jQuery(".notice-left").slide({
        titCell: ".hd ul",
        mainCell: ".bd ul",
        autoPage: true,
        effect: "left",
        autoPlay: true,
        vis: 2
    });

            /*操盘达人*/
    jQuery(".pb7-m").slide({
        titCell: "",
        mainCell: ".bd ul",
        autoPage: true,
        effect: "top",
        autoPlay: true,
        vis: 3
    });
</script>

{/block}